package ooday02;

public class Teacher extends Person {
    double salary;
    Teacher(String name ,int ages,String address,double salary){
        super(name,ages,address);
        this.salary=salary;

    }

    void teach() {
        System.out.println(name + "正在上课");
    }

}